package com.ysg.widget.dialog.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.ysg.R;
import com.ysg.widget.dialog.entity.GiftNumResult;

public class GiftNumAdapter extends BaseQuickAdapter<GiftNumResult.Data, BaseViewHolder> {
    public GiftNumAdapter() {
        super(R.layout.item_dialog_gift_num);
    }

    @Override
    protected void convert(BaseViewHolder holder, GiftNumResult.Data item) {
        TextView tv_giftNumItem = holder.getView(R.id.tv_giftNumItem);
        TextView tv_giftTextItem = holder.getView(R.id.tv_giftTextItem);

        tv_giftNumItem.setText(item.getNum() + "");
        tv_giftTextItem.setText(item.getName() + "");
    }
}
